package com.zx.service.impl;/*
 *@program:SSM
 *@author: zhangjian
 *@Time: 2021/7/27  9:12
 */

import com.zx.DAO.ContractDao;
import com.zx.entity.Contract;
import com.zx.service.ContractService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ContractServiceImpl implements ContractService {

    @Resource
    private ContractDao contractDao;

    //添加合同信息
    @Override
    public void addContract(Contract contract) {
        contractDao.addContract(contract);
    }

    @Override
    public List<Contract> findAllContract() {
        List<Contract> list = contractDao.findAllContract();
        return list;
    }
}
